#define SCRIMG_OPH

#ifndef SCRLAY_OPH
#include <sdk\scrlay>
#endif

#ifndef APPMAN_OPH
#include <sdk\appman>
#endif

#ifndef WLIB_OPH
#include <sdk\wlib>
#endif

/* Property of wrap */

STRUCT PRS_WRAP
	scrimg%
ENDS

STRUCT PR_WRAP
	root#(SIZEOF(PRS_ROOT))
	active#(SIZEOF(PRS_ACTIVE))
	wrap#(SIZEOF(PRS_WRAP))
ENDS

/* Constants for scrimg */

#define SCRIMG_LINEDN 0x00
#define SCRIMG_LINEUP 0x01
#define SCRIMG_PAGEDN 0x02
#define SCRIMG_PAGEUP 0x03
#define SCRIMG_LINBEG 0x04
#define SCRIMG_LINEND 0x05
#define SCRIMG_SETPOS 0x06
#define SCRIMG_FORMAT_DELETE_LEFT 1
#define SCRIMG_FORMAT_DELETE_RIGHT 2
#define SCRIMG_FORMAT_TYPING 3
#define SCRIMG_PAN_SETNOPAN 0
#define SCRIMG_PAN_DELTA 1
#define SCRIMG_PAN_ABS 2
#define SCRIMG_STCHNG_DOC 0
#define SCRIMG_STCHNG_PARA 1
#define SCRIMG_STCHNG_LINE 2
#define SCRIMG_FLAGS_PAGEBREAK 0x01
#define SCRIMG_FLAGS_S3_COMPAT 0x02

/* Types for scrimg */

STRUCT SCRIMG_WIN
	wid%
	tl#(SIZEOF(P_POINT))
	nlines%
	lheight#
	lascent#
	width%
	margin%
	lcfont%
	cwidth#
	lcstyle#
	lccode#
	hscrlx#
	hscrlm#
	drawplabs#
ENDS

/* Property of scrimg */

STRUCT PRS_SCRIMG
	wrap%
	lay%
	win#(SIZEOF(SCRIMG_WIN))
	anc#(SIZEOF(SCRLAY_PLX))
	crs#(SIZEOF(SCRLAY_PLX))
	oldcrs#(SIZEOF(SCRLAY_PLX))
	txwidth%
	mrwidth%
	xleft%
	xright%
	lcwidth#
	lcline#
	updownx%
	select#
	formatting#
	isredraw#
	GCcreated#
	emphasised#
	plabchange#
	nopan#
	flags#
	lfmt%
	lgood%
	xo%
	gc#(SIZEOF(G_GC))
ENDS

STRUCT PR_SCRIMG
	root#(SIZEOF(PRS_ROOT))
	scrimg#(SIZEOF(PRS_SCRIMG))
ENDS
